#define _CRT_SECURE_NO_WARNINGS
#include"SList.h"


void test1()
{
	ListNode* plist = LTInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPrint(plist);
	ListPushFront(plist, 20);
	ListPrint(plist);
	ListPopFront(plist);
	ListPrint(plist);
}

void test2()
{
	ListNode* plist = LTInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPrint(plist);
	ListNode* pos = ListFind(plist, 1);
	ListErase(pos);
	ListPrint(plist);
	ListDestory(plist);
	ListPrint(plist);
}


int main()
{
	test2();
	return 0;
}